package com.yxw.live_vod_backend_boot.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品管理信息
 *
 * @author xiexuxin
 * @date 2023-12-0
 */
@Data
@ApiModel(value="ProductVO", description="商品管理信息")
public class ProductVO implements Serializable {

    @ApiModelProperty("商品Id")
    private Long productId;

    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("商品主图")
    private String[] productMasterPic;

    @ApiModelProperty("商品详情图")
    private String[] productDetailPic;

    @ApiModelProperty("用户Id")
    private Long userId;

    @ApiModelProperty("用户名称")
    private String userName;

    @ApiModelProperty("店铺Id")
    private Long shopId;

    @ApiModelProperty("店铺名称")
    private String shopName;

    @ApiModelProperty("类目Id")
    private Long categoryId;

    @ApiModelProperty("类目名称")
    private String productCategory;

    @ApiModelProperty("商品规格")
    private String productSpecification;

    @ApiModelProperty("直播/点播Id")
    private Long bussId;

    @ApiModelProperty("商品链接")
    private String productUrl;

    @ApiModelProperty("商品系列号")
    private String productSeriesNum;

    @ApiModelProperty("商品价格")
    private BigDecimal productPrice;

    @ApiModelProperty("促销价格")
    private BigDecimal cutPrice;

    @ApiModelProperty("折扣")
    private BigDecimal discount;

    @ApiModelProperty("库存")
    private Integer totalCnt;

    @ApiModelProperty("预占量")
    private Integer preeCnt;

    @ApiModelProperty("实占量")
    private Integer useCnt;

    @ApiModelProperty("商品状态 0在售 1停售")
    private Integer productStatus;

    @ApiModelProperty("商品编号")
    private String productNum;

    @ApiModelProperty("购买须知")
    private String purchaseNotes;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("款式")
    private String style;

    @ApiModelProperty("图片业务ID")
    private Long picBussId;

}
